Class com.pacist.diamonds.BookEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.pacist.diamonds.BookEvent
- public class BookEvent
- extends java.util.EventObject
Event fired by a Book when the current page is changed.
- See Also:
- Serialized Form
Field Summary
|
static int
|
BOOKEVENT_FIRST
Marks the first integer id for the range of Book event ids. |
static int
|
BOOKEVENT_LAST
Marks the last integer id for the range of Book event ids. |
static int
|
PAGE_TURNED
Marks the page turned id for the range of Book event ids. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary
|
BookEvent(java.lang.Object source,
int type)
Constructs an BookEvent object with the specified source object. |
BookEvent(java.lang.Object source,
int type,
java.awt.Component oldPage,
java.awt.Component newPage)
Constructs an BookEvent object with the specified source object. |
Method Summary
|
int
|
getID()
Returns the event type. |
java.awt.Component
|
getNewPage()
Returns the new current page. |
java.awt.Component
|
getOldPage()
Returns the old current page. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
BOOKEVENT_FIRST
protected static final int BOOKEVENT_FIRST
- Marks the first integer id for the range of Book event ids.
BOOKEVENT_LAST
protected static final int BOOKEVENT_LAST
- Marks the last integer id for the range of Book event ids.
PAGE_TURNED
public static final int PAGE_TURNED
- Marks the page turned id for the range of Book event ids.
BookEvent
public BookEvent(java.lang.Object source,
int type)
- Constructs an BookEvent object with the specified source object.
- Parameters:
source
- the object where the event originated
type
- the type of event
BookEvent
public BookEvent(java.lang.Object source,
int type,
java.awt.Component oldPage,
java.awt.Component newPage)
- Constructs an BookEvent object with the specified source object.
- Parameters:
source
- the object where the event originated
type
- the type of event
oldPage
- the "old" current page
newPage
- the "new" current page
getID
public int getID()
- Returns the event type.
getOldPage
public java.awt.Component getOldPage()
- Returns the old current page.
- Returns:
- the old current page.
getNewPage
public java.awt.Component getNewPage()
- Returns the new current page.
- Returns:
- the new current page.